import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/lists/:id',
      name: 'lists',
      component: () => import( '../views/lists.vue')
    },
    {
      path: '/Details/:id',
      name: 'Details',
      component: () => import( '../views/Details.vue')
    },
    {
      path: '/Buying/:goods_id',
      name: 'Buying',
      component: () => import( '../views/Buying.vue')
    },
    {
      path: '/Result',
      name: 'Result',
      component: () => import( '../views/Result.vue')
    },
    {
      path: '/Signin',
      name: 'Signin',
      component: () => import( '../views/Signin.vue')
    },
    {
      path: '/Signup',
      name: 'Signup',
      component: () => import( '../views/Signup.vue')
    },
    {
      path: '/Forgot',
      name: 'Forgot',
      component: () => import( '../views/Forgot.vue')
    },
    {
      path: '/Myhome',
      name: 'Myhome',
      component: () => import( '../views/Myhome.vue')
    },
    {
      path: '/Settings',
      name: 'Settings',
      component: () => import( '../views/Settings.vue')
    },
    {
      path: '/Settingspass',
      name: 'Settingspass',
      component: () => import( '../views/Settingspass.vue')
    },
    {
      path: '/Sitemap',
      name: 'Sitemap',
      component: () => import( '../views/Sitemap.vue')
    },
    {
      path: '/Privacy',
      name: 'Privacy',
      component: () => import( '../views/Privacy.vue')
    }

    ,
    {
      path: '/search',
      name: 'search',
      component: () => import( '../views/search.vue')
    }




  ],
})

export default router
